package cn.yt.hospital.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author yangtao
 * @since 2023-03-01
 */
public class Doctor implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "did", type = IdType.AUTO)
    private Integer did;

    private String dname;

    private Integer age;

    private String phone;

    private String email;


    private Integer hid;
    @TableField(select = false,exist = false)
    private Hospital hospital;

    public Doctor(Integer did, String dname, Integer age, String phone, String email, Integer hid, Hospital hospital) {
        this.did = did;
        this.dname = dname;
        this.age = age;
        this.phone = phone;
        this.email = email;
        this.hid = hid;
        this.hospital = hospital;
    }

    public Doctor() {
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getDid() {
        return did;
    }

    public void setDid(Integer did) {
        this.did = did;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getHid() {
        return hid;
    }

    public void setHid(Integer hid) {
        this.hid = hid;
    }

    public Hospital getHospital() {
        return hospital;
    }

    public void setHospital(Hospital hospital) {
        this.hospital = hospital;
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }
}
